package com.wg.msorderds.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("ordertb")
@NoArgsConstructor
@AllArgsConstructor
public class Ordertb implements Serializable {
    @Schema(description = "订单编号")
    @TableId(type = IdType.AUTO) // 添加主键注解
    private Integer id;

    @Schema(description = "用户编号")
    private Integer userId;

    @Schema(description = "订单总金额")
    private Double totalAmount;

    @Schema(description = "订单状态")
    private Integer status;

    @Schema(description = "支付方式")
    private String payType;

    @Schema(description = "收货地址ID")
    private Integer addressId;

    @Schema(description = "购买时间")
    private String payTime;


    @Schema(description = "收货状态")
    private Integer shoppingStatus;
    @Schema(description = "创建时间")
    private Date createTime;
    @Schema(description = "更新时间")
    private Date updateTime;
}
